import { defineStore } from 'pinia'

export const useGlobalStore = defineStore({
  id: 'global-store',
  state: () => ({
    isLoading: false
  }),
  actions: {
    setLoading(load: boolean) {
      // 可以做异步
      // await post(data);
      this.isLoading = load
    }
  }
})
